package com.huangguolin.cloud.api.user.service;

import com.huangguolin.cloud.api.user.entity.ApiUserEntity;
import com.huangguolin.cloud.mybatis.entity.PtIndividualEntity;
import com.huangguolin.cloud.mybatis.entity.PtUserEntity;
import com.huangguolin.cloud.mybatis.flexigrid.PagingEntity;

import java.util.List;

public interface ApiUserService {
    /**
     * 注册用户
     * @param userName
     * @param passWord
     * @param identity
     * @param phone
     * @param email
     */
    void register(String userName, String passWord,String identity, String phone, String email);

    /**
     * 登录
     * @param userName
     * @param passWord
     * @return
     */
    List<PtUserEntity> login(String userName, String passWord);
    /**
     * 根据邮箱发送验证码
     * @param emailCode
     */
    void getemailcode(String emailCode);

    /**
     * 分页查询
     * @param paging
     * @param entity
     * @return
     */
    List<PtUserEntity> queryUserList(PagingEntity paging, ApiUserEntity entity);

    /**
     * 查询用户总条数
     * @param entity
     * @return
     */
    Integer queryUserTotal(ApiUserEntity entity);

    /**
     * 修改个人信息
     * @param userUuid
     * @param userName
     * @param gender
     * @param birthday
     * @param signature
     * @param occupation
     * @param firm
     * @param hometown
     * @param phone
     * @param email
     * @param personalInstructions
     */
    void personalInformation(String userUuid, String userName, String gender, String birthday, String signature, String occupation, String firm, String hometown, String phone, String email, String personalInstructions);

    /**
     * 查询用户uuid
     * @param userName
     * @param userName
     * @return
     */
    String query(String userName, String passWord);


    /**
     * 查询个人信息
     * @param userUuid
     * @return
     */
    List<PtIndividualEntity> queryUser(String userUuid);

    /**
     * 修改个人信息
     * @param userUuid
     * @param userName
     * @param gender
     * @param birthday
     * @param signature
     * @param occupation
     * @param firm
     * @param hometown
     * @param phone
     * @param email
     * @param personalInstructions
     */
    void revise(String userUuid, String userName, String gender, String birthday, String signature, String occupation, String firm, String hometown, String phone, String email, String personalInstructions);

    /**
     * 修改教师个人信息
     * @param userName
     * @param nickname
     * @param password
     * @param sex
     * @param level
     * @param phone
     * @param email
     * @param introduction
     */
    void reviseTea(String userName, String nickname, String password, Integer sex, Integer level, String phone, String email, String introduction,String photo);
    /**
     * 修改密码
     * @param userName
     * @param passWord
     */
    void forget(String userName, String passWord);

    /**
     * 删除用户
     * @param userUuids
     */
    void deleteUser(String userUuids);

    /**
     * 分页查询教师信息
     * @param paging
     * @param entity
     * @return
     */
    List<PtUserEntity> queryUserTeacherList(PagingEntity paging, ApiUserEntity entity);

    /**
     * 查询教师信息总条数
     * @param entity
     * @return
     */
    Integer queryUserTeacherTotal(ApiUserEntity entity);
    /**
     * 分页查询学生信息
     * @param paging
     * @param entity
     * @return
     */
    List<PtUserEntity> queryUserStudentList(PagingEntity paging, ApiUserEntity entity);

    /**
     * 查询学生信息总条数
     * @param entity
     * @return
     */
    Integer queryUserStudentTotal(ApiUserEntity entity);

    /**
     * 删除教师用户
     * @param phone
     */
    void deleteUserTea(String phone);
     /**
     * 删除学生用户
     * @param phone
     */
    void deleteUserStu(String phone);
    /**
     * 查询教师个人信息
     * @param phone
     * @return
     */
    List<PtUserEntity> queryUserTea(String phone);

    /**
     * 添加教师用户
     * @param userName
     * @param nickname
     * @param password
     * @param sex
     * @param level
     * @param role
     * @param phone
     * @param email
     * @param introduction
     */
    void AddUserTea(String userName, String nickname, String password, Integer sex, Integer level, Integer role, String phone, String email, String introduction,String photo);

    /**
     *
     * @param userName
     * @param nickName
     * @param password
     * @param id
     * @param phone
     * @param email
     * @param qqNumber
     * @param introduction
     * @param signature
     */
    void PlusUser(String userName, String nickName, String password, Integer id, String phone, String email, String qqNumber, String introduction, String signature);
}
